// 引入项目中所用的图标

import {
    HomeOutlined,
    PartitionOutlined,
    SettingOutlined,
    TeamOutlined,
    MenuUnfoldOutlined,
    MenuFoldOutlined,
    PoweroffOutlined,
    LockOutlined,
    DesktopOutlined ,
    CarOutlined ,
    AccountBookOutlined ,
    DashboardOutlined ,
    UsergroupAddOutlined 
  } from '@ant-design/icons-vue'
  
  const icons = [
    HomeOutlined,
    PartitionOutlined,
    SettingOutlined,
    TeamOutlined,
    MenuUnfoldOutlined,
    MenuFoldOutlined,
    PoweroffOutlined,
    LockOutlined,
    DesktopOutlined ,
    CarOutlined,
    AccountBookOutlined,
    DashboardOutlined,
    UsergroupAddOutlined
  ]
  // app.use调用对象里面的install方法
  export default {
    install(app) {
      // 全局注册我们使用的所有图标
      icons.forEach((item) => app.component(item.displayName, item))
    }
  }
  